export default [
    {
        path: "/main",
        name: "main",
        component: () => import("./index.vue"),
        // 设置重定向  进来的时候首先进入首页
        redirect: "/main/first",
        // 子路由嵌套   页面底部的导航
        children: [
            { path: "first", name: "first", component: () => import('./first.vue') },
            { path: "classify", name: "classify", component: () => import('./classify.vue') },
            { path: "cart", name: "cart", component: () => import('./cart.vue') },
            { path: "mine", name: "mine", component: () => import('./mine.vue') },
            { path: "*", redirect: { name: "movie" } }
        ]
    }
]